package cool.taomu.toolkit.stock

import com.google.gson.Gson
import java.io.File
import java.util.Map
import org.apache.commons.io.FileUtils
import org.junit.jupiter.api.Test
import com.google.gson.reflect.TypeToken
import java.util.List

class SohuStockTest {
	@Test
	def void a(){
		var str = FileUtils.readFileToString(new File("./usecase/stock.json"),"UTF-8")
		var jsonData = new Gson().fromJson(str,new TypeToken<Map<String, List<Object>>>(){});
		println(jsonData)
	}	
	
	def void b(){
	  var str= "http://image.sinajs.cn/newchart/daily/n/sh600681.gif"
	}
}